package com.ossjk.qlh.minapp.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 *  
 * 菜单
 * @author liuxi
 * @since 2020-08-15
 */
@ApiModel(value = "菜单")
public class Menu {

	private static final long serialVersionUID = 1L;
	/**
	 * 主键
	 */
	@ApiModelProperty(value = "主键", required = true)
	@TableId("id")
	private String id;
	/**
	 * 企业id
	 */
	@ApiModelProperty(value = "企业id")
	@TableField("eid")
	private String eid;
	/**
	 * 开餐时间
	 */
	@ApiModelProperty(value = "开餐时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JSONField(format = "yyyy-MM-dd")
	@TableField("edate")
	private Date edate;
	/**
	 * 类型 1-午餐、2-晚餐
	 */
	@ApiModelProperty(value = "类型 1-午餐、2-晚餐")
	@TableField("type")
	private Integer type;
	/**
	 * 存储套餐的表达式  [  套餐的id ]
	 */
	@ApiModelProperty(value = "存储套餐的表达式  [  套餐的id ]")
	@TableField("exptxt")
	private String exptxt;
	/**
	 * 截单时间
	 */
	@ApiModelProperty(value = "截单时间")
	@DateTimeFormat(pattern = "hh:mm")
	@JSONField(format = "hh:mm")
	@TableField("endtime")
	private Date endtime;
	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	@TableField("remark")
	private String remark;
	 
	public String  getId() {
		return id;
	}
	public void  setId(String id) {
		this.id = id;
	}
	public String  getEid() {
		return eid;
	}
	public void  setEid(String eid) {
		this.eid = eid;
	}
	public Date getEdate() {
		return edate;
	}
	public void  setEdate(Date edate) {
		this.edate = edate;
	}
	public Integer  getType() {
		return type;
	}
	public void  setType(Integer type) {
		this.type = type;
	}
	public String  getExptxt() {
		return exptxt;
	}
	public void  setExptxt(String exptxt) {
		this.exptxt = exptxt;
	}
	public Date  getEndtime() {
		return endtime;
	}
	public void  setEndtime(Date endtime) {
		this.endtime = endtime;
	}
	public String  getRemark() {
		return remark;
	}
	public void  setRemark(String remark) {
		this.remark = remark;
	}


	@Override
	public String toString() {
		return "Menu ["
	+"id=" + id +","
	+"eid=" + eid +","
	+"edate=" + edate +","
	+"type=" + type +","
	+"exptxt=" + exptxt +","
	+"endtime=" + endtime +","
	+"remark=" + remark 
	+ "]";
	}

	 
}
